package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Viewpoint;
import cn.wolfcode.luowowo.article.domain.ViewpointTag;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.query.ViewpointQueryObject;
import cn.wolfcode.luowowo.common.util.AjaxResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IViewpointService {
   // PageInfo query(QueryObject qo);

    Viewpoint get(Long id);

    AjaxResult saveOrUpdate(Viewpoint viewpoint);

    List<Viewpoint> list();

    /**
     * 推荐必游的5个景点
     * @param destID 某个目的地下的
     * @return
     */
    List<Viewpoint> listCommendViewpointTop5(Long destID);

    /**
     * 热门景点
     * @param destId 某个目的地下的
     * @return
     */
    List<Viewpoint> listHotViewpoint(Long destId);

    /**
     * 分页查询景点  pagesize = 15
     * @param qo
     * @return
     */
    PageInfo<Viewpoint> query(ViewpointQueryObject qo);

    /**
     * 查询目的地下的景点标签
     * @param destId
     * @return
     */
    List<ViewpointTag> listTagsByDestId(Long destId);


}
